package MyApp.Controller
{
	import MyApp.View.LoginMediator;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class StartupCommand extends SimpleCommand
	{
		public function StartupCommand()
		{
			super();
		}
		/**
		 * 
		 * @param notification
		 * 
		 */
		override public function execute(notification:INotification):void{
			if(!facade.hasMediator(LoginMediator.NAME)) {
				facade.registerMediator(new LoginMediator(LoginMediator.NAME,notification.getBody().login));
			}
		}
	}
}